package core.model;

import java.util.ArrayList;
import java.util.Random;

import core.GeneticAlgorithm;
import util.Constants;

public class Solution {
	private ArrayList<Double> vector;
	private double eval;
	
	public Solution(){
		this.vector = new ArrayList<Double>();
	}
	
	public Solution(Random r){
		int n = 10;
		
		this.vector = new ArrayList<Double>();
		
		for (int i = 0; i < n; i++) {
			double rValue = Constants.minRange + (Constants.maxRange - Constants.minRange) * r.nextDouble();
			vector.add(rValue);
		}
		
	}

	public ArrayList<Double> getVector() {
		return vector;
	}

	public void setVector(ArrayList<Double> vector) {
		this.vector = vector;
	}

	public double getEval() {
		return eval;
	}

	public void setEval(double eval) {
		this.eval = eval;
	}
	
	
	
	
}
